#{extends 'main.html' /}
#{set title:'Notice' /}

<a href="@{bbs.Notice.write()}">작성</a>
<table style="width: 600px;">
	<tr>
		<th>제목</th>
		<th style="width: 10%;">작성자</th>
		<th style="width: 10%;">조회수</th>
		<th style="width: 20%">작성일</th>
	</tr>
	#{list items:articles, as:'article'}
    <tr>
    	<td><a href="/bbs/notice/view/${article.id}">${article.title}</a></td>
    	<td style="text-align: center;">${article.author}</td>
    	<td style="text-align: center;">${article.hitCount}</td>
    	<td style="text-align: center;">${article.createdDateTime?.format("yyyy-MM-dd")}</td> 
    </tr>
	#{/list}
</table>
<div class="paginate_regular">#{verbatim}${pager.html}#{/verbatim}</div>